package com.wen.yygh.hosp;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * @author Wenjl
 * @date 2021/09/02
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.wen")
@EnableFeignClients(basePackages = {"com.wen.yygh.cmn.client"})
@EnableMongoRepositories(basePackages = {"com.wen.yygh.hosp.repository"})
//注册到nacos
@EnableDiscoveryClient
public class ServerHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerHospApplication.class, args);
    }
}
